package com.main.dao;

import java.util.List;

import com.main.pojo.Uploader;

public interface UploaderDAO {

	public Uploader getUploaderByEmail(String email) throws Exception;
	public Uploader getUploader(String email, String password) throws Exception;
	public Uploader getUploaderById(int id) throws Exception;
	public Uploader insertUploader(Uploader uploader) throws Exception;
	public Uploader insertUploader(String email, String name, String avatar) throws Exception;
	public List<Uploader> getTopUploader(String rankingType, int topNumber) throws Exception;
	public String updatePassword(int uploaderId, String newPassword)throws Exception;
	public void updateInfo(int uploaderId, String name, String avatar, String description)throws Exception;
}
